<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class IndexController extends Controller
{
    //首页
    public function index(Request $request){
        return view('web.index');
    }
    public function game($game){
        return view('web.test.' . $game);
    }
    public function map(){
        return view('web.map');
    }
    //更换语言
    public function change(Request $request,$language){
        if($language=='Zh-cn'){
            session(['lang'=>'en']);
        }else{
            session(['lang'=>'Zh-cn']);
        }
        return redirect()->back();
    }
    //


}
